// MyWork.h: interface for the CMyWork class.
//
//////////////////////////////////////////////////////////////////////
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <vector>
using namespace std;

class CMyWork  
{
	class CMyLrc
	{
	public:
        CMyLrc():h(0),h1(0),m(0),m1(0),s(0),s1(0),ms(0),ms1(0){
			strcpy(szTime1,"0:0:0.000");
		}
		void plShowStrMsg()
		{
			printf("%s --> %s  \n  %s\n",
				szTime0,
				szTime1,
				m_szLrc);
		}
		void plShowSrtMsg()
		{
			prCreatSrtFormat();
            printf("%02d:%02d:%02d,%03d --> %02d:%02d:%02d,%03d\n%s\n",
				h,m,s,ms,
				h1,m1,s1,ms1,
				m_szLrc);
		}
	public:
		char	m_szLrc[256];
		char	szTime0[256];
		char	szTime1[256];
		int		h,h1;
		int		m,m1;
		int		s,s1;
		int		ms,ms1;
	private:
		void prCreatSrtFormat()
		{
			sscanf(szTime0,"%d:%d.%d",&m,&s,&ms);
			sscanf(szTime1,"%d:%d.%d",&m1,&s1,&ms1);
		}
	};
public:
	void pl2Do(char *src,char *dst);
	CMyWork();
	virtual ~CMyWork();

private:
	void prShowSrtSet();
	void prRenewTime1Set();
	void prShowSet();
	void prOpenSrcFile(char *f);
	std::vector<CMyLrc>				m_lrcSet; 
	CMyLrc							m_lrcA; 
};
